function clipboard($els,url){
    $els.each(function(){
        _newClipboard(this, url, $(this).parent().next())
    });
}

function _newClipboard(el, url, $el){
    var clip = new ZeroClipboard( el , {
        moviePath: url
    } );

    clip.on( 'load', function(client) {
        // alert( "movie is loaded" );
        } );

    clip.on( 'complete', function(client, args) {
        alert("Copied text to clipboard!" );
    } );

    clip.on( 'mouseover', function(client) {
        // alert("mouse over");
        } );

    clip.on( 'mouseout', function(client) {
        // alert("mouse out");
        } );

    clip.on( 'mousedown', function(client) {
        client.setText($el.text());
    // alert("mouse down");
    } );

    clip.on( 'mouseup', function(client) {
        // alert("mouse up");
        } );
    return clip;
}

$(function(){
    $('a[data-rel="fold-btn"]').toggle(function(){
        var $this = $(this);
        $this.parent().next().slideUp(300,function(){
            $this.text('+Unfold');
        });
    },function(){
        var $this = $(this);
        $this.parent().next().slideDown(300,function(){
            $this.text('-Fold');
        });
    });
})